def f(*x):
    for i in x:
        a=3*(i**4)-9*(i**2)+(i/2)
        print(a)
f(54,96,83,64,234,158,364)